<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2020/5/21
 * Time: 17:45
 */

namespace app\common\service;


class SystemConfig
{
    /**
     * @name 获取配置
     * @return array|null|\PDOStatement|string|\think\Model
     * @author wx
     * @date 2020/5/21 17:46
     */
    function configGet()
    {
        $info = db('system_config')->find();

        return $info;
    }

    /**
     * @name 修改配置
     * @param $data
     * @author wx
     * @date 2020/5/21 17:48
     */
    function configModify($data)
    {
        db('system_config')->update($data);
    }
}